package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;

@TableName("ve_teach_student_score")
@ApiModel(value="ve_teach_student_score对象", description="课程分班教学学员成绩")
public class VeTeachStudentScore
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("教学课程ID")
    private Integer tcid;
    @ApiModelProperty("学生ID,传0时为当前登录用户")
    private Integer studentid;
    @ApiModelProperty("考核类型id")
    private Integer examtypeid;
    @ApiModelProperty("考核次数")
    private Integer totalcount;
    @ApiModelProperty("考试平均成绩，线下平均值=线下成绩")
    private BigDecimal avgscore;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeTeachStudentScore setStudentid(Integer studentid)
    {
        this.studentid = studentid;return this;
    }

    public VeTeachStudentScore setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeTeachStudentScore setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeTeachStudentScore(id=" + getId() + ", tcid=" + getTcid() + ", studentid=" + getStudentid() + ", examtypeid=" + getExamtypeid() + ", totalcount=" + getTotalcount() + ", avgscore=" + getAvgscore() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeTeachStudentScore setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeTeachStudentScore setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeTeachStudentScore setAvgscore(BigDecimal avgscore)
    {
        this.avgscore = avgscore;return this;
    }

    public VeTeachStudentScore setTotalcount(Integer totalcount)
    {
        this.totalcount = totalcount;return this;
    }

    public VeTeachStudentScore setExamtypeid(Integer examtypeid)
    {
        this.examtypeid = examtypeid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $studentid = getStudentid();result = result * 59 + ($studentid == null ? 43 : $studentid.hashCode());Object $examtypeid = getExamtypeid();result = result * 59 + ($examtypeid == null ? 43 : $examtypeid.hashCode());Object $totalcount = getTotalcount();result = result * 59 + ($totalcount == null ? 43 : $totalcount.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $avgscore = getAvgscore();result = result * 59 + ($avgscore == null ? 43 : $avgscore.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeTeachStudentScore;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeTeachStudentScore)) {
            return false;
        }
        VeTeachStudentScore other = (VeTeachStudentScore)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$studentid = getStudentid();Object other$studentid = other.getStudentid();
        if (this$studentid == null ? other$studentid != null : !this$studentid.equals(other$studentid)) {
            return false;
        }
        Object this$examtypeid = getExamtypeid();Object other$examtypeid = other.getExamtypeid();
        if (this$examtypeid == null ? other$examtypeid != null : !this$examtypeid.equals(other$examtypeid)) {
            return false;
        }
        Object this$totalcount = getTotalcount();Object other$totalcount = other.getTotalcount();
        if (this$totalcount == null ? other$totalcount != null : !this$totalcount.equals(other$totalcount)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$avgscore = getAvgscore();Object other$avgscore = other.getAvgscore();return this$avgscore == null ? other$avgscore == null : this$avgscore.equals(other$avgscore);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }

    public Integer getStudentid()
    {
        return this.studentid;
    }

    public Integer getExamtypeid()
    {
        return this.examtypeid;
    }

    public Integer getTotalcount()
    {
        return this.totalcount;
    }

    public BigDecimal getAvgscore()
    {
        return this.avgscore;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
